package com.wayhome.srpingbootmybatis.boc.dto;

import com.alibaba.fastjson.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

@Data
@ApiModel(value = "中行订单信息")
public class BocOrderInfo {

    @ApiModelProperty(value = "主键ID")
    private Long id;

    @ApiModelProperty(value = "机构编码")
    private String fixmedinsCode;

    @ApiModelProperty(value = "结算id")
    private String setlId;

    @ApiModelProperty(value = "定点医药机构交易流水号")
    private String fixmedinsTrnsSn;

    @ApiModelProperty(value = "交易类型 1：支付 2：退款")
    private String tranType;

    @ApiModelProperty(value = "唯一支付流水号")
    public String payLs;

    @ApiModelProperty(value = "批次号", notes = "批次号可以当天日期为一个批次号")
    public String batchNo;

    @ApiModelProperty(value = "终端流水号", notes = "生成连续的 6 位流水号")
    public String traceNo;

    @ApiModelProperty(value = "支付方式", notes = "ZFBA-支付宝 WEIX-微信 UPAY-银联二维码(暂不支持) DZZF-电子支付 UN-未知")
    public String payType;

    @ApiModelProperty(value = "交易金额", notes = "12位不足12位的补充0")
    public String tranAmt;

    @ApiModelProperty(value = "原银行交易日期 退款时会有此参数")
    public String payBankDate;

    @ApiModelProperty(value = "支付-银行交易日期")
    public String bankDate;

    @ApiModelProperty(value = "支付-银行交易时间")
    public String bankTime;

    @ApiModelProperty(value = "交易结果返回码", notes = "000000-交易成功")
    public String respCode;

    @ApiModelProperty(value = "交易结果描述")
    public String respMsg;

    @ApiModelProperty(value = "商户订单号 支付单号")
    private String payOrderNo;

    @ApiModelProperty(value = "商户订单号 退款单号,只有退款单才有")
    private String refundOrderNo;

    @ApiModelProperty("创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date crteTime;

    @ApiModelProperty("更新时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updtTime;

}
